<template>
  <footer>
    <div class="banxin footer_box tanxin">
      <div class="footer_box_l">
        <img src="../assets/images/home/slogan.png" alt />
        <p>叩丁狼是一家专注于培养高级IT技术人才，为学员提供定制化IT职业规划方案及意见咨询服务的教育科技公司，为您提供海量优质课程，以及创新的线上线下学习体验，帮助您获得全新的个人发展和能力提升。</p>
      </div>

      <ul class="footer_box_c">
        <li @mouseenter="showWx = true" @mouseleave="showWx = false">
          <a href>微信公众号</a>
          <img class="wx" v-show="showWx" src="../assets/images/home/wx.png" alt />
        </li>
        <li>
          <a href>新浪微博</a>
        </li>
        <li @mouseenter="showKf = true" @mouseleave="showKf = false">
          <a href>在线客服</a>
          <img class="kf" v-show="showKf" src="../assets/images/home/wx.png" alt />
        </li>
      </ul>

      <div class="footer_box_r">
        <p>全国免费咨询热线：</p>
        <h2>020-85628002</h2>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  data() {
    return {
      showWx: false,
      showKf: false
    };
  }
};
</script>
 
<style lang = "less" scoped>
@import "../assets/base.less";

footer {
  background: @black;
  color: #7d879a;
  a {
    color: #7d879a;
    text-decoration: none;
  }
  a:hover {
    color: #fff;
  }
  .footer_box {
      height: 240px;
  }
  .footer_box_l {
    width: 426px;
    img {
      margin-top: 33px;
      margin-bottom: 27px;
    }
    p {
      font-size: 12px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #7d879a;
      line-height: 20px;
    }
  }
  .footer_box_c {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(10px);
    li {
      border-right: 1px solid #7d879a;
      padding-left: 18px;
      padding-right: 18px;
      position: relative;
      &:last-of-type {
        border: 0;
      }
      .wx,
      .kf {
        position: absolute;
        left: 50%;
        top: -110px;
        transform: translateX(-50%);
      }
    }
  }
  .footer_box_r {
    padding-top: 92px;
    p {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #7d879a;
      margin-bottom: 10px;
    }
    h2 {
      font-size: 28px;
      font-family: SourceHanSansSC;
      font-weight: bold;
      color: #ffffff;
    }
  }
}
</style>